# while True:
#  print("######欢迎使用用户检测系统######")
#  enter = input("是否继续进行登入，任意键继续，quit退出:")
#  if enter =="quit":
#      break;
#  user_list = [('root', '123456'), ('admin', 'admin')]
#  username = input("请输入用户名：")
#  passwd = input("请输入你的密码：")
#  if (username == user_list[0][0] and passwd == user_list[0][1]) or (username == user_list[1][0] and passwd == user_list[1][1]):
#   print("登入成功")
#  elif (username != user_list[0][0] and passwd == user_list[0][1]) or (username != user_list[1][0] and passwd == user_list[1][1]):
#     print("用户名错误")
#  else:
#     print("密码错误")


# company = {'BOSS':'唐僧', 'CTO':'悟空', 'CFO':'八戒', '搬砖':'沙僧', '苦力':'白龙马'}
# print(company.get('CTO'))
# print(company['BOSS'])
# for i,j in company.items():
#     print(i+"是"+j)
# for i in range(1,3):
#  in_put = input("请输入你要查询的人物：")
#  if in_put in company.values():
#      print("yes")
#  else:
#      print("no")


# import random
# # 员工列表h和奖品列表
# print("公司礼品随机分发系统".center(50, '#'))
# staff_list = ['哪吒', '孙悟空', '玉皇大帝', '王母娘娘']
# gift_list = ['apple 12', '10g黄金', '奥迪A3', '现金红包1万']
# print(f"公司员工名单:{staff_list}")
# print("礼品名单：{}".format(gift_list))
# # 定义一个空字典，用于存储中奖名单和对应的奖品
# win_dict = {}
# # 定义一个集合，用判断程序是否可以结束
# win_set = set()
# input1 = input('按任意键进入开奖系统,按quit退出：')
# # num记录抽奖人数
# num = 0
# if input1 != 'quit':
#     while True:
#         staff_num = random.randint(0, 3)
#         win_name = staff_list[staff_num]
#         if win_name in win_dict.keys():
#             continue
#         else:
#            gift_num = random.randint(0, 3)
#            gift_name = gift_list[gift_num]
# # 将符合条件的中奖名单和奖品写入字典
#         win_dict[win_name] = gift_name
#        # win_set.add(win_name)
#         for i in staff_list:
#             if i in win_dict.keys():
#                 num = num + 1
#                 continue
#         if num == 4:
#             print(win_dict)
#             break
# else:
#     print(f'系统退出！')
#


